package com.example.websocket.another.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class NotifyBean<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    public enum MessageType {
        CHAT,
        JOIN,
        LEAVE
    }

    private MessageType type = MessageType.CHAT;
    private String content;
    private T data;
    private String sender;

}